#@layout() #define main()
<style>
/* .layui-table-cell{
    height:20px;
    line-height: 20px;
} */
</style>
<div class="xp-layout">
	<p Alignment="left"><a class="layui-btn" href="exaCount/export">导出报表</a>
	<table id="department_table" lay-filter="table_tool" ></table>
</div>

<script type="text/javascript">
	layui.use([ 'table', 'layer' ,'form'], function() {
		var table = layui.table, form = layui.form;

		//第一个实例
		table.render({
			id : 'dept_table',
			elem : '#department_table',
			url : 'exaCount/pagingData',
			even: true,
			limit:11,
			page : false,
			cols : [ [ {
				field : 'num', rowspan: 2,
				title : '序号',
				fixed : 'left',
				type : 'numbers'
			}, {
				field : 'shi',
				title : '地市',
				width:100
			},  {
				field : 'sbkc',
				title : '上报考场总数',
				width:200
			},  {
				field : 'yys',
				title : '已验收考场数',
				width:200
			},  {
				field : 'hgkc',
				title : '合格考场数',
				width:200
			},  {
				field : 'xqzg',
				title : '限期整改考场数',
				width:200
			},  {
				field : 'dys',
				title : '待验收考场数',
				width:200
			},  {
				field : 'cyhgl',
				title : '初验合格率',
				width:200
			},  {
				field : 'bz',
				title : '备注',
				width:120
			}  ]]
		});
		
		var $ = layui.$, active = {
			reload : function() {
				//执行重载
				table.reload('dept_table', {
					page : {
						curr : 1
					},
					where : {
						status : $('#status').val(),
					}
				});
			}
		};
		
		//监听提交
		/* form.on('submit(add)', function(data){
			$.post("exaCount/export",data.field,function(res){
				if(res.status){
					layer.msg(res.info, {time: 2000});
					}else{
					layer.msg(res.info, {time: 2000});
				}
			},'json');
			return false;
		}); */
		
	});
	
	
</script>

#end
